﻿/* Muaz Khan – http://dashingquill.web.officelive.com */
using System.Web;
using DTweet.Models;
namespace DTweet.Helpers
{
    public static class Static
    {
        public static bool IsValidRequest { get; set; }
        public static Account CurrentUser { get; set; }
        public static string Domain = UrlHelper.Origin;

        public static void ValidReqeust(this Account userAccount)
        {
            IsValidRequest = true;
            CurrentUser = userAccount;
        }

        public static void InvalidReqeust()
        {
            IsValidRequest = false;
            CurrentUser = null;
        }
    }
}